import React, { useEffect, useState } from 'react';
import App from './app';
import { useRoutes, useLocation } from 'react-router-dom';

import './i18n';
import 'css/app.scss';
import 'css/common.scss';

import { routes } from './routes';
import pkg from '../package.json';
export default function Application() {
    useEffect(() => {
        document.title = pkg.project.common.title;
    }, []);

    return useRoutes(routes);
}